﻿using UnityEngine;

/// <summary>
/// Provides additional creation support for <see cref="Vector3"/>.
/// </summary>
public static class Vector3Factory
{
    public static Vector3 XYZFromValue(float value)
    {
        return new Vector3(value, value, value);
    }
    public static Vector3 XYFromValue(float value, float z)
    {
        return new Vector3(value, value, z);
    }
    public static Vector3 XZFromValue(float value, float y)
    {
        return new Vector3(value, y, value);
    }
    public static Vector3 YZFromValue(float value, float x)
    {
        return new Vector3(x, value, value);
    }

    public static Vector3 XYFromVector2(Vector2 value, float z)
    {
        return new Vector3(value.x, value.y, z);
    }
    public static Vector3 XZFromVector2(Vector2 value, float y)
    {
        return new Vector3(value.x, y, value.y);
    }
}